package com.boarsoft.boar.demo.user.entity;

import java.io.Serializable;

import com.boarsoft.dao.sharding.bean.HashedEntity;

public class PocAccount implements HashedEntity, Serializable {
	private static final long serialVersionUID = 1100561455637971152L;

	private int accountId;
	private int tenantId;
	private int userId;
	private int availableAmount;
	private int lockAmount;
	private String createTime;
	private String modifyTime;

	public PocAccount() {
	}

	public PocAccount(int accountId, int tenantId, int userId, int availableAmount, int lockAmount, String createTime,
			String modifyTime) {
		this.accountId = accountId;
		this.tenantId = tenantId;
		this.userId = userId;
		this.availableAmount = availableAmount;
		this.lockAmount = lockAmount;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
	}

	public int getAccountId() {
		return this.accountId;
	}

	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}

	public int getTenantId() {
		return this.tenantId;
	}

	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getAvailableAmount() {
		return this.availableAmount;
	}

	public void setAvailableAmount(int availableAmount) {
		this.availableAmount = availableAmount;
	}

	public int getLockAmount() {
		return this.lockAmount;
	}

	public void setLockAmount(int lockAmount) {
		this.lockAmount = lockAmount;
	}

	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Override
	public int hash() {
		return tenantId;
	}

	@Override
	public String toString() {
		return "PocAccount [accountId=" + accountId + ", tenantId=" + tenantId + ", userId=" + userId
				+ ", availableAmount=" + availableAmount + ", lockAmount=" + lockAmount + ", createTime=" + createTime
				+ ", modifyTime=" + modifyTime + "]";
	}

	
}
